<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="__PUBLIC__/admin/sncss/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/admin/sncss/js/jquery.js"></script>


</head>


<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a>首页</a></li>
    <li><a>订单管理</a></li>
    <li><a>邮件列表</a></li>
    </ul>
    </div>

    <div class="rightinfo">
    <div class="tools">

    <form id="form1" name="form1" method="post" action="{:U('/Home/Order/email_list')}">

        <input name="email_name" type="text" class="dfinput" placeholder="搜索自媒体/标题/邮箱" id="email_name" value="<?php echo $email_name;?>" />
        <input name="" type="submit" class="btn" value="搜索"/>
    </form>

    </div>
    <table class="tablelist">
    	<thead>
    	<tr>
        <th>自媒体名称</th>
        <th>标题</th>
        <th>邮箱</th>
        <th>时间</th>
        <th>状态</th>
        <th>失败次数</th>
        </tr>
        </thead>
        <tbody>

		<foreach name='emailinfo' item='v'>
        <tr>
        <td>{$v.mname}</td>
        <td>{$v.title}</td>
        <!-- <td><a href="{:U('/Home/Order/order_edit',array('oid'=>$v['id']))}" class="tablelink"><?php echo mb_strlen($v['title']) > 10 ? mb_substr($v['title'],0,10).'...' : $v['title'];?></a></td> -->
        <td>{$v.email}</td>
        <td>{$v.time|date="Y-m-d H:i:s",###}</td>
        <td><if condition="$v.status eq 1">发送<else />未发送</if></td>
        <td>{$v.fail}</td>
        <!-- <td><a href="{:U('/Home/Order/order_edit',array('oid'=>$v['id']))}" class="tablelink">详情</a></td> -->
        </tr>
       </foreach>
        </tbody>
    </table>
    <style>.pages a,.pages span {
    display:inline-block;
    padding:2px 5px;
    margin:0 1px;
    border:1px solid #f0f0f0;
    -webkit-border-radius:3px;
    -moz-border-radius:3px;
    border-radius:3px;
}
.pages a,.pages li {
    display:inline-block;
    list-style: none;
    text-decoration:none; color:#58A0D3;
}
.pages a.first,.pages a.prev,.pages a.next,.pages a.end{
    margin:0;
}
.pages a:hover{
    border-color:#50A8E6;
}
.pages span.current{
    background:#50A8E6;
    color:#FFF;
    font-weight:700;
    border-color:#50A8E6;
}</style>

   <div class="pages"><br />

                        <div align="right">{$page}
                        </div>
   </div>

    </div>

    <script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	</script>

</body>

</html>
